<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\Dispatcher;

class DispatcherSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $dispatchers = [
            [
                'name' => '调车员小刘',
                'phone' => '13900139001',
                'status' => 1
            ],
            [
                'name' => '调车员小陈',
                'phone' => '13900139002',
                'status' => 1
            ],
            [
                'name' => '调车员小周',
                'phone' => '13900139003',
                'status' => 1
            ]
        ];

        foreach ($dispatchers as $dispatcher) {
            Dispatcher::create($dispatcher);
        }
    }
}
